Skip to main content

Sorting search results

You can sort GitHub search results using the Sort menu, or by adding a sort qualifier to your query.

Note

Sorting search results is not supported for GitHub code search. For more information on code search, see About GitHub Code Search.

Use the Sort dropdown menu to sort results by relevance, number of stars, number of forks, and how recently the items were updated.

To sort by interactions, reactions, comments, created date, relevance, author date, committer date, or how recently the items were updated, you can add a sort qualifier to your search query.

Sort by comments

The sort:comments qualifier sorts by the number of comments.

QualifierExample
sort:comments or sort:comments-descorg:github sort:comments matches issues in repositories owned by GitHub, sorted by the highest number of comments.
sort:comments-ascorg:github sort:comments-asc matches issues in repositories owned by GitHub, sorted by ascending number of comments (the fewest to the most).

Sort by created date

The sort:created qualifier sorts by the date when the items were created.

QualifierExample
sort:created or sort:created-descorg:github sort:created matches issues in repositories owned by GitHub, sorted by the most recently created date.
sort:created-ascorg:github sort:created-asc matches issues in repositories owned by GitHub, sorted by ascending created date (oldest to newest).

Sort by relevance

The sort:relevance qualifier sorts by search relevance.

QualifierExample
sort:relevance or sort:relevance-descorg:github sort:relevance matches issues in repositories owned by GitHub, sorted by highest search relevance.

Sort by interactions

The sort:interactions qualifier sorts by the highest combined number of reactions and comments.

QualifierExample
sort:interactions or sort:interactions-descorg:github sort:interactions matches issues in repositories owned by GitHub, sorted by the highest combined number of reactions and comments.
sort:interactions-ascorg:github sort:interactions-asc matches issues in repositories owned by GitHub, sorted by the lowest combined number of reactions and comments.

Sort by reactions

The sort:reactions qualifier sorts by the number or type of reactions.

QualifierExample
sort:reactions or sort:reactions-descorg:github sort:reactions matches issues in repositories owned by GitHub, sorted by the highest number of reactions.
sort:reactions-ascorg:github sort:reactions-asc matches issues in repositories owned by GitHub, sorted by ascending number of reactions (the fewest to the most).
sort:reactions-+1 or sort:reactions-+1-ascorg:github sort:reactions-+1-asc matches issues in repositories owned by GitHub, sorted by ascending thumbs up (๐Ÿ‘) reactions (the fewest to the most).
sort:reactions-+1-descorg:github sort:reactions-+1-desc matches issues in repositories owned by GitHub, sorted by descending thumbs up (๐Ÿ‘) reactions (the most to the fewest).
sort:reactions--1 or sort:reactions--1-ascorg:github sort:reactions--1-asc matches issues in repositories owned by GitHub, sorted by ascending thumbs down (๐Ÿ‘Ž) reactions (the fewest to the most).
sort:reactions--1-descorg:github sort:reactions--1-desc matches issues in repositories owned by GitHub, sorted by descending thumbs down (๐Ÿ‘Ž) reactions (the most to the fewest).
sort:reactions-smile or sort:reactions-smile-ascorg:github sort:reactions-smile-asc matches issues in repositories owned by GitHub, sorted by ascending laugh (๐Ÿ˜„) reactions (the fewest to the most).
sort:reactions-smile-descorg:github sort:reactions-smile-desc matches issues in repositories owned by GitHub, sorted by descending laugh (๐Ÿ˜„) reactions (the most to the fewest).
sort:reactions-tada or sort:reactions-tada-ascorg:github sort:reactions-tada-asc matches issues in repositories owned by GitHub, sorted by ascending hurray (๐ŸŽ‰) reactions (the fewest to the most).
sort:reactions-tada-descorg:github sort:reactions-tada-desc matches issues in repositories owned by GitHub, sorted by descending hurray (๐ŸŽ‰) reactions (the most to the fewest).
sort:reactions-heart or sort:reactions-heart-ascorg:github sort:reactions-heart-asc matches issues in repositories owned by GitHub, sorted by ascending heart (โค๏ธ) reactions (the fewest to the most).
sort:reactions-heart-descorg:github sort:reactions-heart-desc matches issues in repositories owned by GitHub, sorted by descending heart (โค๏ธ) reactions (the most to the fewest).
sort:reactions-thinking_face or sort:reactions-thinking_face-ascorg:github sort:reactions-thinking_face-asc matches issues in repositories owned by GitHub, sorted by ascending thinking face (:thinking_face:) reactions (the fewest to the most).
sort:reactions-thinking_face-descorg:github sort:reactions-thinking_face-desc matches issues in repositories owned by GitHub, sorted by descending thinking face (:thinking_face:) reactions (the most to the fewest).
sort:reactions-rocket or sort:reactions-rocket-ascorg:github sort:reactions-rocket-asc matches issues in repositories owned by GitHub, sorted by ascending rocket (๐Ÿš€) reactions (the fewest to the most).
sort:reactions-rocket-descorg:github sort:reactions-rocket-desc matches issues in repositories owned by GitHub, sorted by descending rocket (๐Ÿš€) reactions (the most to the fewest).
sort:reactions-eyes or sort:reactions-eyes-ascorg:github sort:reactions-eyes-asc matches issues in repositories owned by GitHub, sorted by ascending eyes (๐Ÿ‘€) reactions (the fewest to the most).
sort:reactions-eyes-descorg:github sort:reactions-eyes-desc matches issues in repositories owned by GitHub, sorted by descending eyes (๐Ÿ‘€) reactions (the most to the fewest).

Sort by author date

The sort:author-date qualifier sorts by descending or ascending author date.

QualifierExample
sort:author-date or sort:author-date-descfeature org:github sort:author-date matches commits containing the word "feature" in repositories owned by GitHub, sorted by descending author date.
sort:author-date-ascfeature org:github sort:author-date-asc matches commits containing the word "feature" in repositories owned by GitHub, sorted by ascending author date.

Sort by committer date

The sort:committer-date qualifier sorts by descending or ascending committer date.

QualifierExample
sort:committer-date or sort:committer-date-descfeature org:github sort:committer-date matches commits containing the word "feature" in repositories owned by GitHub, sorted by descending committer date.
sort:committer-date-ascfeature org:github sort:committer-date-asc matches commits containing the word "feature" in repositories owned by GitHub, sorted by ascending committer date.

Sort by updated date

The sort:updated qualifier sorts by how recently the items were updated.

QualifierExample
sort:updated or sort:updated-descfeature sort:updated matches repositories containing the word "feature," sorted by most recently updated date.
sort:updated-ascfeature sort:updated-asc matches repositories containing the word "feature," sorted by least recently updated date.

Further reading